package entity

import (
	"time"

	"shqsoft.cn/pasnj/base"
)

//CompAccoFlow
type CompAccoFlow struct {
	ID        int       `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	ACNO      string    `gorm:"column:ACNO"`
	BANO      string    `gorm:"column:BANO;"`
	OPDT      string    `gorm:"column:OPDT;"`
	YWLX      string    `gorm:"column:YWLX;"`
	ITNM      string    `gorm:"column:ITNM"`
	OrganName string    `gorm:"column:OrganName"`
	CUNM      string    `gorm:"column:CUNM;"`
	FPNO      int       `gorm:"column:FPNO;"`
	PPNO      int       `gorm:"column:PPNO;"`
	ACBL      float64   `gorm:"column:ACBL;"`
	YEAL      float64   `gorm:"column:YEAL;"`
	VLDT      time.Time `gorm:"column:VLDT;"`
	MADT      time.Time `gorm:"column:MADT;"`
	RDNM      string    `gorm:"column:RDNM;"`
	ISDIVI    bool      `gorm:"column:ISDIVI;"` //是否认定
}

//TableName 表名
func (CompAccoFlow) TableName() string {
	return "V_COMP_ACCO_FLOW"
}

func CompAccoFlowEF() base.EntityFunc {
	return func() interface{} {
		entity := CompAccoFlow{}
		return &entity
	}
}
func CompAccoFlowESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []CompAccoFlow
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("CompAccoFlow", base.NewDefaultDao(CompAccoFlowEF(), CompAccoFlowESF(), nil))
}
